package com.wjyf.reducing_bento.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wjyf.reducing_bento.model.dto.CommodityAddDto;
import com.wjyf.reducing_bento.model.dto.CommodityUpdateDto;
import com.wjyf.reducing_bento.model.entity.CommodityBean;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 商品表 服务类
 * </p>
 *
 * @author wjyf
 * @since 2023-03-14 08:36:32
 */
public interface CommodityService extends IService<CommodityBean> {

    Page<CommodityBean> getCommodityPage(Long current, Long pageSize);

    boolean add(CommodityAddDto commodityAddDto);

    boolean update(CommodityUpdateDto commodityUpdateDto);
}
